Integrand size = 23, antiderivative size = 86 \[ \int \frac {\text {sech}^5(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=-\frac {(2 a+3 b) \arctan (\sinh (c+d x))}{2 b^2 d}+\frac {(a+b)^{3/2} \arctan \left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a} b^2 d}-\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 b d} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3757, 425, 536, 209, 211} \[ \int \frac {\text {sech}^5(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {(a+b)^{3/2} \arctan \left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a} b^2 d}-\frac {(2 a+3 b) \arctan (\sinh (c+d x))}{2 b^2 d}-\frac {\tanh (c+d x) \text {sech}(c+d x)}{2 b d} \]
[In]
[Out]
Rule 209
Rule 211
Rule 425
Rule 536
Rule 3757
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{\left (1+x^2\right )^2 \left (a+(a+b) x^2\right )} \, dx,x,\sinh (c+d x)\right )}{d} \\ & = -\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 b d}+\frac {\text {Subst}\left (\int \frac {a+2 b+(-a-b) x^2}{\left (1+x^2\right ) \left (a+(a+b) x^2\right )} \, dx,x,\sinh (c+d x)\right )}{2 b d} \\ & = -\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 b d}+\frac {(a+b)^2 \text {Subst}\left (\int \frac {1}{a+(a+b) x^2} \, dx,x,\sinh (c+d x)\right )}{b^2 d}-\frac {(2 a+3 b) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{2 b^2 d} \\ & = -\frac {(2 a+3 b) \arctan (\sinh (c+d x))}{2 b^2 d}+\frac {(a+b)^{3/2} \arctan \left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a} b^2 d}-\frac {\text {sech}(c+d x) \tanh (c+d x)}{2 b d} \\ \end{align*}
Time = 0.77 (sec) , antiderivative size = 79, normalized size of antiderivative = 0.92 \[ \int \frac {\text {sech}^5(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=-\frac {\frac {2 (a+b)^{3/2} \arctan \left (\frac {\sqrt {a} \text {csch}(c+d x)}{\sqrt {a+b}}\right )}{\sqrt {a}}+2 (2 a+3 b) \arctan \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )+b \text {sech}(c+d x) \tanh (c+d x)}{2 b^2 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(235\) vs. \(2(74)=148\).
Time = 50.33 (sec) , antiderivative size = 236, normalized size of antiderivative = 2.74
method | result | size |
derivativedivides | \(\frac {-\frac {2 \left (\frac {-\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} b}{2}+\frac {b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}}{\left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right )^{2}}+\frac {\left (2 a +3 b \right ) \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}\right )}{b^{2}}+\frac {2 \left (a^{2}+2 a b +b^{2}\right ) a \left (\frac {\left (\sqrt {\left (a +b \right ) b}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}-\frac {\left (\sqrt {\left (a +b \right ) b}-b \right ) \operatorname {arctanh}\left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{b^{2}}}{d}\) | \(236\) |
default | \(\frac {-\frac {2 \left (\frac {-\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} b}{2}+\frac {b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}}{\left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right )^{2}}+\frac {\left (2 a +3 b \right ) \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}\right )}{b^{2}}+\frac {2 \left (a^{2}+2 a b +b^{2}\right ) a \left (\frac {\left (\sqrt {\left (a +b \right ) b}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}-\frac {\left (\sqrt {\left (a +b \right ) b}-b \right ) \operatorname {arctanh}\left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{b^{2}}}{d}\) | \(236\) |
risch | \(-\frac {{\mathrm e}^{d x +c} \left ({\mathrm e}^{2 d x +2 c}-1\right )}{d b \left ({\mathrm e}^{2 d x +2 c}+1\right )^{2}}+\frac {i \ln \left ({\mathrm e}^{d x +c}-i\right ) a}{d \,b^{2}}+\frac {3 i \ln \left ({\mathrm e}^{d x +c}-i\right )}{2 d b}-\frac {i \ln \left ({\mathrm e}^{d x +c}+i\right ) a}{d \,b^{2}}-\frac {3 i \ln \left ({\mathrm e}^{d x +c}+i\right )}{2 d b}+\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a +b}-1\right )}{2 d \,b^{2}}+\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a +b}-1\right )}{2 a d b}-\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a +b}-1\right )}{2 d \,b^{2}}-\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a +b}-1\right )}{2 a d b}\) | \(320\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 750 vs. \(2 (74) = 148\).
Time = 0.29 (sec) , antiderivative size = 1584, normalized size of antiderivative = 18.42 \[ \int \frac {\text {sech}^5(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\text {sech}^5(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\int \frac {\operatorname {sech}^{5}{\left (c + d x \right )}}{a + b \tanh ^{2}{\left (c + d x \right )}}\, dx \]
[In]
[Out]
\[ \int \frac {\text {sech}^5(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\int { \frac {\operatorname {sech}\left (d x + c\right )^{5}}{b \tanh \left (d x + c\right )^{2} + a} \,d x } \]
[In]
[Out]
\[ \int \frac {\text {sech}^5(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\int { \frac {\operatorname {sech}\left (d x + c\right )^{5}}{b \tanh \left (d x + c\right )^{2} + a} \,d x } \]
[In]
[Out]
Time = 2.60 (sec) , antiderivative size = 1012, normalized size of antiderivative = 11.77 \[ \int \frac {\text {sech}^5(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {\left (2\,\mathrm {atan}\left (\frac {\left ({\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (\frac {64\,\left (12\,a^2\,b^4\,d\,\sqrt {a^3+3\,a^2\,b+3\,a\,b^2+b^3}-2\,a\,b^5\,d\,\sqrt {a^3+3\,a^2\,b+3\,a\,b^2+b^3}+18\,a^3\,b^3\,d\,\sqrt {a^3+3\,a^2\,b+3\,a\,b^2+b^3}+6\,a^4\,b^2\,d\,\sqrt {a^3+3\,a^2\,b+3\,a\,b^2+b^3}\right )}{a^3\,b^9\,d^2\,{\left (a+b\right )}^2\,\left (a^2+2\,a\,b+b^2\right )}-\frac {32\,\left (3\,a^5\,\sqrt {a\,b^4\,d^2}-b^5\,\sqrt {a\,b^4\,d^2}+4\,a\,b^4\,\sqrt {a\,b^4\,d^2}+15\,a^4\,b\,\sqrt {a\,b^4\,d^2}+20\,a^2\,b^3\,\sqrt {a\,b^4\,d^2}+27\,a^3\,b^2\,\sqrt {a\,b^4\,d^2}\right )}{a^3\,b^7\,d\,\sqrt {{\left (a+b\right )}^3}\,\left (a^2+2\,a\,b+b^2\right )\,\sqrt {a\,b^4\,d^2}}\right )+\frac {32\,{\mathrm {e}}^{3\,c}\,{\mathrm {e}}^{3\,d\,x}\,\left (3\,a^5\,\sqrt {a\,b^4\,d^2}-b^5\,\sqrt {a\,b^4\,d^2}+4\,a\,b^4\,\sqrt {a\,b^4\,d^2}+15\,a^4\,b\,\sqrt {a\,b^4\,d^2}+20\,a^2\,b^3\,\sqrt {a\,b^4\,d^2}+27\,a^3\,b^2\,\sqrt {a\,b^4\,d^2}\right )}{a^3\,b^7\,d\,\sqrt {{\left (a+b\right )}^3}\,\left (a^2+2\,a\,b+b^2\right )\,\sqrt {a\,b^4\,d^2}}\right )\,\left (a^2\,b^7\,\sqrt {a\,b^4\,d^2}+2\,a^3\,b^6\,\sqrt {a\,b^4\,d^2}+a^4\,b^5\,\sqrt {a\,b^4\,d^2}\right )}{192\,a^3+576\,a^2\,b+384\,a\,b^2-64\,b^3}\right )+2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,{\left (a+b\right )}^2\,\sqrt {a\,b^4\,d^2}}{2\,a\,b^2\,d\,\sqrt {{\left (a+b\right )}^3}}\right )\right )\,\sqrt {a^3+3\,a^2\,b+3\,a\,b^2+b^3}}{2\,\sqrt {a\,b^4\,d^2}}-\frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (18\,a^7\,\sqrt {b^4\,d^2}+3\,b^7\,\sqrt {b^4\,d^2}+30\,a^2\,b^5\,\sqrt {b^4\,d^2}+342\,a^3\,b^4\,\sqrt {b^4\,d^2}+555\,a^4\,b^3\,\sqrt {b^4\,d^2}+396\,a^5\,b^2\,\sqrt {b^4\,d^2}-34\,a\,b^6\,\sqrt {b^4\,d^2}+135\,a^6\,b\,\sqrt {b^4\,d^2}\right )}{b^8\,d\,\sqrt {4\,a^2+12\,a\,b+9\,b^2}-12\,a\,b^7\,d\,\sqrt {4\,a^2+12\,a\,b+9\,b^2}+18\,a^2\,b^6\,d\,\sqrt {4\,a^2+12\,a\,b+9\,b^2}+102\,a^3\,b^5\,d\,\sqrt {4\,a^2+12\,a\,b+9\,b^2}+117\,a^4\,b^4\,d\,\sqrt {4\,a^2+12\,a\,b+9\,b^2}+54\,a^5\,b^3\,d\,\sqrt {4\,a^2+12\,a\,b+9\,b^2}+9\,a^6\,b^2\,d\,\sqrt {4\,a^2+12\,a\,b+9\,b^2}}\right )\,\sqrt {4\,a^2+12\,a\,b+9\,b^2}}{\sqrt {b^4\,d^2}}-\frac {{\mathrm {e}}^{c+d\,x}}{b\,d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}+\frac {2\,{\mathrm {e}}^{c+d\,x}}{b\,d\,\left (2\,{\mathrm {e}}^{2\,c+2\,d\,x}+{\mathrm {e}}^{4\,c+4\,d\,x}+1\right )} \]
[In]
[Out]